import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";
import vant from "vant";
import "vant/lib/index.css";
import "./assets/main.css";
// 全局组册模块
import modules from "@/modules/index.js";

import { vToBuild } from "./utils/toBuildUtils.js";
import VueLuckyCanvas from '@lucky-canvas/vue'
const app = createApp(App);

app.use(vant);
app.use(VueLuckyCanvas);
app.directive("toBuild", vToBuild);
app.use(createPinia());
app.use(modules);
app.use(router);
app.mount("#app");
